Ext.define('App.view.Main', {

    extend: 'Ext.tab.Panel',
    xtype: 'main',
    id: "main",
    
    config: {
    
        fullscreen: true,
        
        defaults: {
            layout: 'fit'
        },
        
        tabBar: {
            docked: 'bottom',
            ui: 'gray',
            layout: {
                pack: 'center',
                align: 'center'
            },
            scrollable: {
                direction: 'horizontal',
                indicators: false
            }
        },
        
        
        items: [{
            id: 'home',
            title: '首页',
            iconCls: 'home',
            items: [{
                xtype: 'homeCard'
            }]
        }, {
            id: 'news',
            title: '中考新闻',
            iconCls: 'time',
            items: [{
                xtype: 'newsCard'
            }]
        }, {
            id: 'score',
            title: '志愿参考',
            iconCls: 'team',
            items: [{
                xtype: "splash"
            }]
        }, {
            id: 'guide',
            title: '中考指导',
            iconCls: 'user',
            items: [{
                xtype: 'guideCard'
            }]
        }, {
            id: 'recruit',
            title: '中考问答',
            iconCls: 'refresh',
            items: [{
                xtype: 'answerCard'
            }]
        }, {
            id: 'review',
            title: '各科复习',
            iconCls: 'bookmarks',
            items: [{
                xtype: 'reviewCard'
            }]
        }, {
            id: 'article',
            title: '优秀作文',
            iconCls: 'compose',
            items: [{
                xtype: 'articleCard'
            }]
        }, {
            id: 'eat',
            title: '中考饮食',
            iconCls: 'favorites',
            items: [{
                xtype: 'eatCard'
            }]
        }, {
            id: 'setting',
            title: '设置',
            iconCls: 'settings',
            items: [{
                xtype: 'settingCard'
            }]
        }, {
            id: 'about',
            title: '关于我们',
            iconCls: 'info',
            items: [{
                xtype: 'about'
            }]
        }]
    }
});
